package domain.weapon;

import images.GameImagesMap;
import images.Images;

import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.appearances.Sprite;


public class BazookaProjectile extends Projectile {

	public BazookaProjectile(int dir, double x,
			double y, double power, double angle) {
		super(dir,15, 15, x, y, new Explosion(100, 70, 70, 0, 0), power,angle, 0);
	}

	protected void effectiveUpdate(DeltaState deltaState) {
		super.effectiveUpdate(deltaState);
		
		this.setAppearance(this.getSprite().rotate((this.getYdif())));
		
	}
	
	
	protected Sprite getSprite(){
		return GameImagesMap.getImage("bazooka-p");
	}
}
